package com.guigusuqi.act.service;

import com.guigusuqi.act.dto.PublishActivityInfoDTO;
import com.guigusuqi.act.entity.UserActivity;
import com.baomidou.mybatisplus.extension.service.IService;
import com.guigusuqi.commonutils.vo.Result;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author suqi
 * @since 2022-04-15
 */
public interface UserActivityService extends IService<UserActivity>
{

    /**
     * 用户报名活动
     * @param publishActivityInfoDTO
     * @return
     */
    Result actRegistration(PublishActivityInfoDTO publishActivityInfoDTO);

    /**
     * 查看用户是否已报名
     * @param openid
     * @param actId
     * @return
     */
    int selectRegisterActivityCount(String openid, String actId);

    /**
     * 查询已报名的活动
     * @param openid
     * @return
     */
    Result selectRegisteredActivity(String openid);

    /**
     * 删除已报名的活动
     */
    Result deleteRegisteredActivity(String openid, String actId);

    Result selectUserActList(String openid);

    Result selectUserActStatus(String openid, String actId);
}
